import { request } from '@/utils/request'

export function page(params) {
  return request({
    url: '/api/borrow/page',
    params
  })
}

export function borrowBook(data) {
  return request({
    url: '/api/borrow/borrowBook',
    method: 'post',
    data
  })
}

export function revertBook(data) {
  return request({
    url: '/api/borrow/revertBook',
    method: 'post',
    data
  })
}